package com.imoblife.brainwavestus.pad.activity;



import android.graphics.drawable.Drawable;
import android.os.Bundle;

import com.imoblife.brainwavestus.BaseActivity;
import com.imoblife.brainwavestus.R;
import com.imoblife.brainwavestus.oldLibraryClass.AbsCategoryProductList;
import com.imoblife.brainwavestus.util.DebugUtil;

public class ShopActivity extends BaseActivity {

	public static final String ACT_UPDATE_SHOP = "act_update_shop";
	public static final String ACT_UPDATE_CATEGORY = "act_update_category";

	AbsCategoryProductList absCategoryProductList;
	Drawable back;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		initTitleName(getString(R.string.store));
		if (absCategoryProductList == null) {
			absCategoryProductList = new AbsCategoryProductList(this);
		}

		setContentView(R.layout.tb_category_product_list);
		
		absCategoryProductList.loading();
	}

	protected void onStart() {

		super.onStart();
		
	}

	protected void onStop() {
		
		super.onStop();
	}

	public void finish() {
		if (absCategoryProductList.finish()) {
			return;
		}

		super.finish();
	}

	protected void onDestroy() {

		DebugUtil.debug("ShopActivity", "ShopActivity onDestroy");
		absCategoryProductList.release();
		back = null;
		super.onDestroy();
	}

}
